﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="admin_Left" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>功能导航</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="http://cdnjs.bootcss.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="http://cdnjs.bootcss.com/ajax/libs/twitter-bootstrap/2.3.1/js/bootstrap.min.js" type="text/javascript"></script>
    <style type="text/css">
        body
        {
            background-color: #f5f5f5;
            font-family: Arial, 微软雅黑, 宋体;
            cursor: default;
        }
        .accordion
        {
            box-shadow: 3px 3px 3px #e3e3e3;
        }
        .accordion-group
        {
            border: none;
            margin-bottom: 4px;
        }
        .accordion-heading
        {
            background-color: #80c6db;
        }
        .accordion-group:first-child .accordion-heading
        {
            background-color: #f90;
        }
        .accordion-group:first-child .accordion-heading .accordion-toggle
        {
            cursor: default;
            font-weight: normal;
        }
        .accordion-heading.active
        {
        }
        .accordion-heading a, .accordion-heading h4
        {
            color: #fff;
        }
        .accordion-heading h4.accordion-toggle
        {
            margin: 0;
            padding: 10px 15px;
        }
        .accordion-body
        {
            background-color: #fff;
        }
        .accordion-inner .nav-stacked
        {
            margin-bottom: 5px;
        }
        .accordion-inner .nav-stacked .active a
        {
        }
        .accordion-heading .accordion-toggle .caret
        {
            margin-top: 8px;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 6px solid #fff;
            border-top: none 0 transparent;
        }
        .accordion-heading .accordion-toggle.collapsed .caret
        {
            border-top: 6px solid #fff;
            border-bottom: none 0 transparent;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="span2">
                <div class="accordion">
                    <div class="accordion-group">
                        <div class="accordion-heading active">
                            <h4 class="accordion-toggle">文章管理</h4>
                        </div>
                    </div>
                    
                    <asp:Repeater runat="server" ID="rpt">
                        <ItemTemplate>
                            <div class="accordion-group">
                                <div class="accordion-heading ">
                                    <a href='#coll_<%# Eval("ID") %>' data-toggle="collapse" class="accordion-toggle collapsed"><%# Eval("Name") %><i class="caret pull-right"></i></a>
                                </div>
                                <div class="accordion-body collapse " id='coll_<%# Eval("ID") %>'>
                                    <div class="accordion-inner">
                                        <ul class="nav nav-pills nav-stacked">
                                            <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# Eval("Children") %>'>
                                                <ItemTemplate>
                                                    <li><a href='news/list.aspx?tid=<%# Eval("ID") %>' target="mainFrame"><%# Eval("Name") %></a></li>    
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            
                        </ItemTemplate>
                    </asp:Repeater>
                    
                    
                    <div class="accordion-group">
                        <div class="accordion-heading ">
                            <a href="#coll_type" data-toggle="collapse" class="accordion-toggle collapsed">频道管理<i class="caret pull-right"></i></a>
                        </div>
                        <div class="accordion-body collapse " id="coll_type">
                            <div class="accordion-inner">
                                <ul class="nav nav-pills nav-stacked">
                                    <li><a href="type/list.aspx" target="mainFrame">频道列表</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>

                    <div class="accordion-group">
                        <div class="accordion-heading ">
                            <a href="#coll_user" data-toggle="collapse" class="accordion-toggle collapsed">用户管理<i class="caret pull-right"></i></a>
                        </div>
                        <div class="accordion-body collapse " id="coll_user">
                            <div class="accordion-inner">
                                <ul class="nav nav-pills nav-stacked">
                                    <li><a href="user/list.aspx" target="mainFrame">用户列表</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
</body>
</html>
